<template>
    <div class="component-offer-item" @click="$emit('onclick', 'detail')">
        <img class="user-icon"
             src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1958966202,1289193182&fm=27&gp=0.jpg">
        <div class="text-view">
            <div class="name">林小磊 - 浙商证券上海
                <img @click.stop="$emit('onclick', 'phone')" src="../assets/icon-phonenum.png">
            </div>
            <div class="type">
                <span>方向：<span class="text-red">融出</span></span>
                <span>模式：<span class="text-red">押中债</span></span>
            </div>
            <div class="detail">
                融出 回购 押中债 1天 1.0亿出 1-6个月 押利率 1亿 卫辉农信社 0373-4486680
            </div>
            <div class="data">
                <span class="left-box">2018.06.14 12:12</span>
                <span class="right-box">
                    <img src="../assets/fun-like.png">
                    <span>23</span>
                    <img src="../assets/fun-comment.png">
                    <span>23</span>
                    <img src="../assets/fun-collect.png">
                    <span>23</span>
                </span>
            </div>
        </div>
    </div>
</template>

<style lang="less" scoped>

    @import '../style/variable';

    .component-offer-item {
        padding: 1.5rem 1.5rem 1rem 1.2rem;
        position: relative;
        border-bottom: 1px solid @color-line-gray;

        .user-icon {
            width: 4rem;
            height: 4rem;
            position: absolute;
            top: 1.5rem;
            left: 1.2rem;
        }

        .text-view {
            margin-left: 5rem;
            .name {
                font-size: 1.4rem;
                line-height: 1.5rem;

                img{
                    float: right;
                    height: 1.5rem;
                    vertical-align: bottom;
                }
            }
            .type {
                margin: .9rem 0 .7rem;
                font-size: 1.4rem;
                line-height: 2rem;
                & > span {
                    margin-right: 3.4rem;
                }
            }
            .detail {
                font-size: 1.5rem;
                line-height: 2.1rem;
            }
            .data {
                margin-top: 1rem;
                font-size: 1.1rem;
                line-height: 1.5rem;

                .left-box {
                    color: @color-text-gray;
                }
                .right-box {
                    float: right;
                    img {
                        height: 1.1rem;
                        vertical-align: bottom;
                        margin: .2rem .5rem .2rem 0;
                        &:not(:first-child){
                            margin-left: 2.5rem;
                        }
                    }
                }
            }
        }
    }
</style>